<template>
  <header class="header-container">
    <div class="title-container">薄荷糖</div>
    <div class="img-container">
      <img src="../../assets/image/header.png" alt="">
    </div>
    <div class="li-container">
      <ul>
        <li v-for="(item,index) of navList" 
          :key="index"
        >
          {{item.title}}
        </li>
      </ul>
    </div>
    <div class="search-container">
      <i class="iconfont iconsousuo"></i>
    </div>
  </header>
</template>

<script>
import { NAV } from '@/config/config'
export default {
    name:'Header',
    data(){
      return{
        navList:NAV
      }
    }
}
</script>

<style lang="scss" scoped>
  .header-container{
    width: 100%;
    height: 114px;
    background-color: #ffff;
    box-sizing: border-box;
    position: relative;
    .title-container{
      position: absolute;
      left: 70px;
      font-size: 30px;
      font-weight: bold;
      line-height: 114px;
      padding-left: ;
    }
    .img-container{
      width: 115px;
      height: 110px;
      padding-left: 167px;
      float: left;
    }
    .li-container{
      padding-left: 721px;
      ul{

      }
    }
  }
  
  
</style>